//
//  AlertMessage.m
//  changeView
//
//  Created by Marcelo Perretta on 24/06/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "AlertMessage.h"

@implementation AlertMessage

+(NSArray *) noInternetAccess{
    
    
    NSArray *wordsNoInternet = [NSArray arrayWithObjects:@"No Internet Connection",
                               @"You don't seem to be connected to the Internet", [NSNull null], @"Accept", [NSNull null], nil];

    
    UIAlertView *alert = [[UIAlertView alloc]
                          initWithTitle: [wordsNoInternet objectAtIndex:0]
                          message: [wordsNoInternet objectAtIndex:1]
                          delegate: [wordsNoInternet objectAtIndex:2]
                          cancelButtonTitle: [wordsNoInternet objectAtIndex:3]
                          otherButtonTitles:nil];
    [alert show];
    [alert release];
    
    return wordsNoInternet;
    [wordsNoInternet release];

}

+(void) userDataEmpty:(NSString *) dataOfUser{

     NSArray *wordsDataEmpty = [NSArray arrayWithObjects:[dataOfUser stringByAppendingString:@" Empty"],
        [[@"Sorry, but your " stringByAppendingString:dataOfUser] stringByAppendingString:@" cant' be empty"], [NSNull null], @"Accept", [NSNull null], nil];
     
     UIAlertView *alert = [[UIAlertView alloc]
     initWithTitle: [wordsDataEmpty objectAtIndex:0]
     message: [wordsDataEmpty objectAtIndex:1]
     delegate: [wordsDataEmpty objectAtIndex:2]
     cancelButtonTitle: [wordsDataEmpty objectAtIndex:3]
     otherButtonTitles:nil];
     [alert show];
     [alert release];

}
-(void) showAlert:(NSArray *) params{
    
//code
}



@end


